package com.whut.monitor.controller;

import com.whut.monitor.util.data.TcpClientFullNew0;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import java.io.IOException;


/**
 * @description: 用于启动仿真数据包TcpClientFullNew0
 * @author: zll
 * @create: 2019-03-06 15:53
 **/
@Controller
public class DataStartingController {

    @RequestMapping("/dataStarting")
    public void dataStarting() throws IOException {

        try {
           TcpClientFullNew0.start();
//            String[] str = {"127.0.0.1","3690"};
//            client.client(str);

        } catch (Exception e) {
            e.printStackTrace();

        }
    }
}
